// 存放和用户相关
// 登录，注册，改密码，改头像等
import request from '@/utils/request.js'

// 注册请求
export const regAPI = obj => {
  // body={username:'',password:'',repassword:''}
  return request.post('/api/reg', obj)
}
// 登录请求
// export const loginAPI = obj => {
//   // body={username:'',password:'',repassword:''}
//   return request.post('/api/login', obj)
// }
export const loginAPI = obj => {
  return request.post('/api/login', obj)
}
export const getUserAPI = () => {
  return request.get('/my/userinfo')
}
